Add unit tests for internal retries

This PR follows #116 by implementing a unit test class testing the internal retry decorator

- Add TestInternalRetries under `test/unit` using the `mix` framework
- Add test for multiple internal retries with server errors
- Add support for socket timeouts in the internal retry decorator