tweak self test behavior for line endings on windows