Add test with channels as return type.