Added cache hit log. Fixed test