Fix Scraper#collect_valid_links return error, add tests