add unit test for patient. Fix unit test for cadre