Make the window maximize before testing.