fix moving of node into inserted parent
add test
fix handling of deleted nodes
fix: missing nodes to delete