Add test for cansel button in edit