Refactor and improve specs for StaticPages