added EncoderTest