Fix EZP-21949: Increase code coverage in CoreBundle DIC extension

https://jira.ez.no/browse/EZP-21949

Uses https://github.com/matthiasnoback/SymfonyDependencyInjectionTest .

## TODO

* [x] Compiler passes
* [ ] EzPublishCoreExtension