added mocha and chai for testing; added npm test script; added example test
Merge branch 'feature-tests' into develop