Fix expected newline characters in unit tests