Refactoring static pages tests