Fix to prevent mocha tests from running twice

Due to how mocha gets instantiated, mocha tests were being run twice. Implemented a small hack to prevent this. Will look in to sending PR to mocha project to address this scenario.