add tests and documentation for last_used_cache
update changes