Added unit test for unlinking edges