Improved unit test (Added shared_examples, validate right links in layouts, ApplicationHElper for RSpec)