redis test code