Further simplify enumerable group_by test