add redis models and its tests