Added some testing logic with redis