Fix tests
Add array_unique(...) for getResource() methods again.

I don't consider it necessary because it is an implementation detail of ConfigCache how to handle these resources, but as it was covered (for Routing) by a unit test I prefer to keep it.
Fix test (wrong assumptions)