Add test for cancel button in edit