added additional testcases and redis queries