implement encode simpleTest.