[FIX] Infinite loop
[ENH] Add periodic channel test