Unit Tests of Upgrades with json deserialization