CollectionTest - tests for groupBy