s4 unittests: add unit tests for upgradehelpers