assert.fail will call mocha.throwError when it is defined