adapt to future mocha - refs visionmedia/mocha/#791 and https://github.com/visionmedia/mocha/commit/bafd14e224f1a7566808f1c1e4ed5a906220ca8b