Add tests for link function and add link function for Jsoup