Exit with a nonzero code on test failure