Replace the database query with an entity query in PathTaxonomyTermTest