Test and expectation formulated for ranges in for loops.