add unit test
Merge pull request #1 from wangfangguo01/master

add unit test