tests: added QueryBuilder test