fix cache in unittests