[lib] adds the ability for pre-upgrade hook to return a value to the upgrade signal, [test] adds the later as a part of the pre-upgrade test
[dist] bumps version