add some test code

Signed-off-by: xushuai <xushvai@gmail.com>