subscribe-test: extract subscribeWithBadFn
function
#3630
Merged
subscribeWithBadFn
function
#3630