Added a test for HTTP endpoint and PubSub.