Add tests for PubSub role