Moved testContact() to a function shared by editContact and viewContact.
Moved testContact() to a function shared by editContact and viewContact.

gansoi/gansoi,gansoi/gansoi,gansoi/gansoi,gansoi/gansoi