Create pretty url for static pages. And refactoring tests