Stub redis connection in tests