This PR adds tests for JSONRPC objects: Request, Reply, Error and Batch.
The idea for this and my other PR's is based on this issue: #16450
As always, I'm using this website to search for missing coverages: https://marcofalke.github.io/btc_cov/test_bitcoin.coverage/src/rpc/request.cpp.gcov.html