Added tests for objects containing objects