test4 passes 100% with rpc