Encoding test