pubsub and tests