add exit code tests