Modified tests to exit non-zero if the tests fail.