Fixed the spec for the task history in-memory cache.
Added spec for the story to hint gc() when daemon sits idle, after executing the build.