Decoder/encoder, more tests.