Fix #468: Loosen tests to account for extra newlines with libxml2-2.9.1
Replace opaque rstrip() with assertEqualSplits()
Merge pull request #468 from agriffis/repair-tests-libxml2-2.9.1

Tests fail with libxml-2.9.1