Added more tests for GroupBy.