refatoring tests to medics_controller