[DependencyInjection] Fix travis unit tests