got test4 to run with rpc, but hit deadlock and errors in some tests.