Mocked redis and some tests