Clean up handling of mocha test initialization.