- The test was failing because it assumed the process `redis-server` was not already running.
- This commit adds a check to see if the process exists. If it does, it stops it before starting it.
- If it doesn't exist, it creates it before starting it.
- This ensures the test is more robust and reliable.