fixed all DI unit tests and added documentation