Fix run_tests shell return code on error