added some more tests for the encoder