better testing of cache in main