introduced mocha.throwError for better async error handling