add unit tests for moveTreeDocAfter