fixed mocha deprecation warning