Sitemap tests added

As we lack tests for our code some tests for sitemap generator were implemented.
Let's do not repeat, and move this check to `_get_sitemap_dict`.