JR1016 make the replace alt function testable