added test for async groupBy