Fixed set_observer to obey new itemsAdded API.
Fixed set test for new itemsAdded API.