refactor static pages tests