Fixed bug where mocha tests were being run twice.