Fix mocha deprecation warning