fix cache tests
store exceptions in the cache. Unsure why.