Add tests for SexpTransformation's replace_lines method