Add tests for channel class