Fixed a bug in `npm publish` and started unit-tests