s4-provision handle a number of invalid but real-world upgrade cases