Fixed exit code for test scripts.