Fixed broken gui-test
Refactored LastResultOpenedState. Improved GuiTest.closeWindow()