Testing foreach loop