Tests with main window