[tests] fix cache tests