refactor static page tests

5.6 exercise 1 page 217