Ported EncoderTest