Edit test scripts to add exit status