Testing optimistic update in react query. - TanStack