Fix unit tests for SubscriptionsApi.