Add test for unsuccessful edit