init test with mocha; rename export function `Client` to `createClient`