Fix eagerly allocating in input stream
Add tests for transformations, transcoder.