added test code to solve the patient-clinician connection problem