Add test for editing links