fix the test cases of `regexp-replace`