Fix tests for libxml2 > 2.8