Make tests that throw an STL exception fail
If a test throws any unexpected exception, the test is supposed to detect that and fail. For the STL exceptions, the test failed to return an error code. Fix that.
If a test throws any unexpected exception, the test is supposed to detect that and fail. For the STL exceptions, the test failed to return an error code. Fix that.