Refactor static_pages unit tests
Refactor unit tests