Fixed RPC unit tests.