added test for maximize window