Adding newline preservation tests