Implement integration test for retrying expected failures