Fixed tests for the `:retry_on_failure` option

According to the documentation :retry_on_failure specifies the number of
times a request is **retried** before failing.

The previous implementation was using it as the max number of tries
(instead of retries).

Closes #27