[DependencyInjection] fixed tests (refs #7017)