Add error handling tests.