Test QueryGroup in QueryBuilder.