Added upgrading test framework

See wiki for details about how to use the upgrading testing framework.
MADlib upgrade can be tested.