[TASK] Fix failing unit tests for LocalDriver

The original patch for #46604 unfortunately broke two (non-critical)
unit tests, which are fixed again by this commit.

Change-Id: I36d2cc62cc6cc744cd482aad573db57a57f832a8
Related: #46604
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/19244
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf