fix tests failing because of trailing newline