The test create a base file, with the content 
[test]
This section as some irrelevant content

And a reference file with
[test]
This section as some irrelevant content
content

(hence one extra line)
the diff makes sure that the line ends up in the base file