Add CoredataError and have a test for it.