add test for replace()