Unit test channels.js(client)