refactored tests to use shared examples, added tests for links and added application spec helper