Remove repetition from static_pages tests