[BUGFIX] Fix ResourceFactory Test

Travis fails to execute some newly introduced Factory
Tests. This patch aims to clean them up and make
Travis happy again :)

Change-Id: I8b57eb9bd3cbcb2cb3fc2831a4d1fbffa1c30877
Resolves: #45748
Releases: 6.1, 6.0
Tested-by: Christian Kuhn
Reviewed-on: https://review.typo3.org/19672
Reviewed-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring