Test exit code update