Added tests for object merging feature & fixed parsing bug