Add test for recursive object merging