Refactored static_pages_spec

Also added tests for links