feature (#21416) added a test for multiple line replacement