change createStream implementation

* define stream as Transform child
* change tests according to the new implementation
add createWriteStream utility

* extract function to create a Transform stream
* remove useless parameter of createReadStream