Fix unit test for upgrade.