add test code for quit option
add code for the test for quit option