changed mocha test bug