encoder test ok

Signed-off-by: lizhizhou <lzz@meteroi.com>