static_page test refactor and spec helpers