Added test for group_calc