testcases for restfull call.