Add ability to pipeline rpc requests
Make test simpler