refactor,add unit test.
Merge pull request #62 from forumbyr/master

refactor,add unit test.
Merge pull request #4 from cnnic/develop

Develop