add testcase for restService