Test subscribe/unsubscribe events for pub/sub API in the way same to tests of request-response APIs
Reduce indent