Tests for the encoders/decoders