Upgrade.pm 'before' now working with tests