Refactor small set of RPC tests to support SHA256
This MR refactors a small set of RPCs with small-complexity-tests to generate test data at runtime and enables testing with the SHA256 object format for them.
This MR refactors a small set of RPCs with small-complexity-tests to generate test data at runtime and enables testing with the SHA256 object format for them.