Encoder test