Are the missing newlines (here and in expected) intended and needed ?
It would be nice to keep to a minimum the files that don't end in a newline ...