test cases for set/getWindowSize