commit: Test ListCommits and FindAllCommits with SHA256
Refactor tets for ListCommits and FindAllCommits to support testing with SHA256.
Part of #5435 (closed).
Refactor tets for ListCommits and FindAllCommits to support testing with SHA256.
Part of #5435 (closed).