Add tests for newline characters in strings