Fix mocha initialization deprecation warning

Maintains compatability with all versions of mocha