fixes to system tests, handle newline differences during comparison