added JUnit test for updateGUI()