fix and tests for raw decoder