Refactor rspec test to avoide duplication
Add links test
Add helper tests