adopted unit tests to new LinkService