TST: add tests for index.groupby (GH5620)