Fix redis issue which breaks test