add replace test case in unit test