[test] Add additional test for modifying the values of object properties on a resource
[core] [fix] Ensure that default values for objects are cloned and not copied by reference