test exit_code