Add a test that compares the error we got with the error we expected.