fixed Encoder tests