fix diff tests after newline removal