Fix test to properly detect Redis availability