Tests for pubsub