better redis handling in tests