Check valid link and Improve StaticPagesSpec