updated mocha test script