Improve rspec syntax and add test for links