repository: Make WriteRef compatible with SHA256 object format
This MR refactors the tests for WriteRef to generate their data at runtime and makes the overall RPC compatible with SHA256.
This MR refactors the tests for WriteRef to generate their data at runtime and makes the overall RPC compatible with SHA256.