[BUGFIX][EM] Fix failing unit tests

Change-Id: I2a100ba46e4b3c3177848ed554ea74f2d2b8dc52
Fixes: #46588
Related: #46573
Releases: 6.1, 6.0
Reviewed-on: https://review.typo3.org/19664
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn