Changed eachObject to be consistent with eachArray, changed tests and applicable methods