Added tests for exit_program