Link and Link API tests
Move direct db calls to model for links and notes
Bugfix - more precise "X on Y" checks for Index title change