Added a test case for adding an object in an existing object