Refactor static_pages test