Account for different OS line endings in tests