client tests with mocha