add link and unlink tests