On the functional test of L2 caches