moving redis setup method into common testing file