added test for deleting link