fixed test for groupBy operator