Fix tests around deleted links