Doc before append:
  li:{} [root] FIRST li:{empty} LAST li:{non-empty}
   li:{empty} 
   li:{non-empty} FIRST te:{key1} LAST te:{key2}
    te:{key1} {val1}
    te:{key2} {val2}
Node before append:
  te:{} [root] [nodoc] {"to_be_appended"}
-
Doc after append:
  li:{} [root] FIRST li:{empty} LAST te:{}
   li:{empty} 
   li:{non-empty} FIRST te:{key1} LAST te:{key2}
    te:{key1} {val1}
    te:{key2} {val2}
   te:{} {"to_be_appended"}
Node after append:
  te:{} {"to_be_appended"}
