-add unittest and property

Signed-off-by: ymsquall <ymsquare@hotmail.com>