Fix DependencyResolver's unit test.