refactor static pages unit test