added mocha test snippets. updated readme.