Fixed cache_handler hash function that's used to store cache. Added cache_handler tests.