add upgrade-test, document self-upgrading