repository: Test refactorings and fixes for SearchFiles RPCs
This MR refactors tests of the SearchFiles RPCs to not use seed repositories anymore. Furthermore, it fixes two issues I have found and avoids hard-coding the SHA1 object format. Finally, it also enables testing with SHA256.