Added groupBy test