add synchronous test of resubscribe after error
Merge pull request #1068 from davidmoten/retry-unit-test

add synchronous test of resubscribe after error