config redis with testing env considered