[Config] Added tests for the ConfigCache.
[Config] Fixed @covers annotation which ignored some of the methods from the code coverage.
[Config] Added tests for the FileResource and DirectoryResource.