Refactor redis test befores