Fix tests for libxml2 > 2.8 

This should fix tests regarding new-lines issue [1] which is caused by `libxml2` > 2.8 and fixes order in one test as well.

[1] https://github.com/vmg/redcarpet/issues/210