Added unit tests and bumped the npm version