CLN: Split test_window.py further
closes #19228
xref #26807
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] passes `black pandas`

Just splitted code into files by classes. No changes made to code

cc @jreback 