Testing And Validation Framework For Closed-Loop Physiology Management Systems For Critical And Perioperative Care