Edit Pod not working in Practice Test

In the practice exam for Beginner - Kubernetes and in Kubernetes - Administrator, after I execute the command : kubectl run redis --image=redis123 --generator=run-pod/v1 and then when the question asks to modify the image of redis to redis, then when I execute the command : kubectl edit pod redis, it says no pod found with name redis. This happened in both courses. Is there anything that I am doing wrong here?