Made anomaly_test to be compiled and to pass the test.
Merged modification of rpc_client_test.