cache tests