fixed mocha tests