added tests for channel