Added some tests for rpcserver