Split out the tests in test_errors.cpp.