Adding integration tests for pubsub.
Merge branch 'pubsub-integration'