Integration test for SubtreeWriter update