Fix `resizeWindow` signature.
Updated window management tests.