Fixes tests: each should iterate over the root attributes of an object