Fix run_tests.py to exit with non-0 status on test failure