refactor integration tests wrt contact.edit