Refactor StaticPage test for less repetition