Added tests for mergeObjects;
Fixed exception when add[p] or origin[p] was falsy