Refactoring GUIFunctionalTest class