Fix #725: Escape newlines in test output messages
Merge pull request #737 from gzm0/fix-test-newline

Fix #725: Escape newlines in test output messages