Add a test for looping through field values