Add tests for DependencyInspector#investigate