Added package.json for npm
Prepared tests for pubsub module