Add a spec for the error case.