Fixed timing bug in the CacheTest