Added Encoder test