add basic test code with redis