Refactored redis test