Issue #3151959 by Hardik_Patel_12, daffie: Replace the database query with an entity query in PathTaxonomyTermTest