Add tests on DependencyInjection