Added tests for doExitAction