Add tests for link deletion