test encoders