Added test cases for preserve newlines