refactor static_pages_spec tests