Added a couple of tests for pubsub