[TASK] Fix unit tests

Change-Id: I7316b4cfbb7c372b5a4882d05577c8aa275f8ddb
Reviewed-on: https://review.typo3.org/30949
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer