Add exit code to run-test.sh