More query builder tests