implement and test RedisFactory from config