some encode test.

Signed-off-by: hackem <hackem@mzsea.com>