Sitemap tests added

As we lack tests for our code some tests for sitemap generator were implemented.
Instead of answering the question *What?*, it would be better to answer the question *"Why?"*. 

I didn't look at the code below, but I have no idea why you're doing this.