Add Note#clear_links and fix tests.