fixes rspec error; adds rspec for link model