Added a dependencyinjection.json file, a factory and tests.