Fix end-of-lines in expected output of tests