Replace the database query with an entity query in NodeRevisionsAllTest