RetryActor implemented with tests.