added test for window