add method replace test case