a test was splitting a json log message with a wrong line separator. Using System.lineSeparator consistently prevents this problem closes #39829 backport#39830