add basic test function

Signed-off-by: jarod.w <wl.jarod@gmail.com>