Refactors rspec code
Testing links in spec
Adds test for helper method