Fix redis leak when testing