Test case for loops (data object with an array field)