mocha test working