Encoding test.