Remove newlines from messages

Newlines in messages were causing tests that were throwing exceptions to show as passing in TeamCity.