TST: groupby apply with indexing and column aggregation returns the column #7002
Adds test for #7002 

- [x] closes #7002 
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
