savingzelda/lib: adding check_links() and tests