Adding unit tests for some channel related methods