[DependencyInjection] use/fix newest Definition::setFactory
Merge branch '2.6' into 2.7

* 2.6:
  [DependencyInjection] use/fix newest Definition::setFactory
  fixed unit tests