add link and unlink test code