Update mocha config to get beforeEach working
* Add unhappy path for checkStatus()
* mocha.checkLeaks() stops declared globals