Add spec for when Error