Fixed a small bug in redis module.

Still working on redis-test module.