Refactored LastResultOpenedState. Improved GuiTest.closeWindow()