Fix issue where all tests raise errors if one test fails.