Updated build, fixed typo.
Add mocha unit tests.