cli tests with mocha