add some test code

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