Scope exceptions
Add type hinting in channel
Fix unit tests