revamped the mocha runner, using the runner object created by calling mocha.run()