Fix new/existing link tests
Remove setupUIEvents function