Fix the NullPointerException in one of the tests in guiTest1