EZP-21134: Increase code coverage in EzPublishCoreBundle