Fix unit tests extbase persistence
#57263 changed an interface but didn't adapt the test accordingly.
[BUGFIX] Fix Query unit test and two typehints
Fixes a change of interface in the unit test for Query.
Moreover two more places miss the new interface typehint.
Reviewed-by: Felix Oertel
Tested-by: Felix Oertel
Reviewed-by: Markus Klein
Tested-by: Markus Klein