add unit tests
Merge pull request #86 from JeremyLetang/ticket

add unit tests