fix some test case (replaceChild)