added unit tests
updated package.json with test script