Test procedure for cache