Refactored tests with shared examples
Added tests for link destinations
Included application helper in spec utilities