Refactor static pages tests