Add tests that simulate server errors to exercise the retry behavior (both initial failure followed by success and failure through all retries)