Add tests for Enum.group function.