added test for query builder