Improve testing on static pages

Added a Test for links and application helper. Shared examples behavior
added to eliminate duplications.