Fix newline representation in generated tests