Fix links_data (also update tests for it); closes #55