test edit capital validations