corrected the test case to reflect the closeAndQuit() change