add tests

Signed-off-by: TZ <atian25@qq.com>