Encoder testing