Capture calls to nodeunit.run before karma starts