Adding a test for main window.