spawn process for remote rpc method invocation and adds some tests