Add forgotten decoding when casting the Decoder to string
Add some tests for the decoder