Added tests for channel.