SitemapIndex class refactored and tested