Testing An Encoder