apply setters on objects of an array
added test for apply setter on each object of array