fixed mocha test to pass