Refactor static page tests