Test group_calc with multiple groups