Fix delete link testing bug