Fix incorrect hash of a cache_entry
Fix tests compilation