Encoder test

Encoder test