增加单元测试

Signed-off-by: Li Yonglei <liyonglei@fuego.cn>