[BUGFIX] Fix failing cache test

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