Added a test when same dependencies are added multiple times.