[BUGFIX] RepositoryTest raises warning

The change for issue #42506 introduced an incomplete mocking
of the Query object, now throwing warnings about missing
constructor() parameters. Fix is to not call the constructor.

Next to that, a minor namespace is fixed.

Change-Id: I7f3645549aeed97d5e11f44a17152441eb9bbad9
Resolves: #44833
Related: #42506
Releases: 6.1
Reviewed-on: https://review.typo3.org/17733
Reviewed-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring