integrating clearstatcache into tests