Fix newline issues in tests.