Test edit function .