TEST: switching loops in memory testing