[TST]: Groupy raised ValueError for ffill with duplicate column names
- [x] closes #25610
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`


Was fixed in the past. Added test to avoid regression
