Can we use accumulator to test `foreach`? Creating new files makes the test a little complicated.