Added test for replace child