added test for QueryBuilder