spec for error exceptions now working