Test: using for-in instead of for loop