widened scope of test case and put cache key generation function under test coverage.