Added pubsub tests