refacto redis test