added tests for main window