call mocha in npm test