Improve unit test string diffs

Validate full analysis test output vs an array of lines rather than a
big string. This makes empty lines properly highlighted on the results
web page.