#77388Refactor tests migrated in #77381
Description
There are a few things to be refactored in the tests migrated to functional tests in #77381:
- use fixture for inserting sys_file_storage into db and no query
- use storagerepository to get a working storageRepository instead of creating one via “new StorageRepository()”