add unit tests with mock redis instance