make retry testable