Fixed all tests except RedisCluster and RedisShard
Fixed a bug in test