added test for link