Updated tests and pubsub error response.