fix test_drop_link (thanks @jerith)