Fix mocha deprecations.