added test to make sure program would properly exit if only quit command was entered on line