tests for onSubscription to reactor