TST: Add tests for fixed issues
- [x] closes #5647
- [x] closes #5586
- [x] closes #5286
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
