Fix for mocha deprecation warning