implemented mocha unit tests
Merge pull request #1 from ngs/unit-tests

implemented mocha unit tests