Corrected test for pubsub