Add tests for retrying fetch