Unit test for the Link class