add some initial tests for channel.js