Added a test covering resizeWindow