fix some bugs && update the test cases

the test cases were not updated synchronously
after adding tracer to the rpc framework. Also,
it is found some bugs when running test cases and were
fixed in this commit.