improve - rename reset method to adapt
new - reset() method for decoder
new  - unit test for pipeline and invalid decode