added unit tests
Merge pull request #3 from ngs/unit-tests

added unit tests