Fixing up the test method for the query builder