Fix xpath selectors in test that fails with libxml2 >= 2.9.0