Added tests. Also, a small bugfix for how we allocate virtual streams. Instead of it in the event listener we do it outside of it.
Merge pull request #60 from zettajs/virtual-device-bugfix-tests

Added tests. Also, a small bugfix for how we allocate virtual streams. I...