Fix TestCursorRetries test