test document replaceChild