Tests around foreach.