QueryBuilder tests added