ref: Refactor some tests to support SHA256
This MR refactors tests for the following RPCs to support the SHA256 object format:
- FindAllBranches
- FindLocalBranches
- FindTag
Part of #5439 (closed).
This MR refactors tests for the following RPCs to support the SHA256 object format:
Part of #5439 (closed).