There's a test helper method `helper.assertTextEqual` to compare text correctly with EOL.