Add test for edit validations