Issue #41: wired in the rest of cache events and added unit tests.