Added test code for extracting links from pages.