More tests for upgrade handling.