[test] memory saving in update operations

I wrote the test just to make sure that non-changed members are reused instead of being cloned.