change test case for nokogiri parsing html tags with trailing newlines