[MAINT] Add functional testing for window management.

As the title says.