Added tests for RPC server.
code-style