[#60746198] fixing bug and adding units

adding unit test coverage for the iteraate function
as well as fixing a bug in the iterator for
channels