Test cover pubsub
Add tests