add unit test for LoggingChannelAdapter