Simple test case for the Encoder and Decoder types.