Refactor Subscription test case