foreach testing