Tests for upgrade command