Add Unit Test of get workflow rest api