Add mkChanStream function

I also added a test. Not sure about the name 'mkChanStream' though, but couldn't come up with a better one.