Add upgrade-dependencies error test scenario. 100% coverage.