unit test for RedisPersistence