Added mock decoder.
Decoder decorator, unit tests.