Update test/test.js

pubsub idea