Make CacheTest sleep properly

This way it will always sleep for the right amount of time (or longer)