assert that collection can be iterated with for-in