addObj implementation and partial test