Issue #2249723 by andrei.dincu: Replace variable_set() with D8 code in XmlSitemapUnitTest and XmlSitemapTestHelper