add a test for retrying multiple times