refactor stream test
refactor stream.js
Merge pull request #37 from folieadrien/master

refactor test