Fixed problem with propagation of half-read buffer in the pipeline
Fixed tests for Codec refactoring