TST: add tests for index.groupby (GH5620)
Merge pull request #8840 from jorisvandenbossche/gh5620

TST: add tests for index.groupby (GH5620)