fixed non-should.js-style exception checking