Made `npm test` work.

Added nodeunit as a dev dependency and updated package.json to include test cmd.