spec test the retry failure loop

- create an accessor for dependency injection
- make sure that it raises when it runs out of retries