Send correct exit code on test failure.