added unit test for successful delivery after retry attempts