add unit tests
fix test
Merge pull request #2 from Particular/unitTests

add unit tests