fix append! when parent is nil
add sel test
add append! tests