refactor static_pages tests