rewrote all cache tests to be automated