[BUGFIX][TEST] Some tests fail

Change-Id: I777b454191728f3627ff61a38ac7cce19d5dd66a
Fixes: #52739
Reviewed-on: https://review.typo3.org/24702
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers