added tests for channels clean

added tests and simplified the clean method.