modify unit test for window