Add failUnlessSuccess.
Add Eq instance for ErrCode.