Sitemap tests added

As we lack tests for our code some tests for sitemap generator were implemented.
Why to set `__class__`? In order to get work `isinstance()` check? Am I right?