AMBARI-5061. Ambari Upgrade stack command failed. Unit test fixes. (swagle)