Add test before setting/adding a link in a model