Adds tests for image Encoding, with one fail which actually does not work