add working RPC wrapper with test files