Fix bug where NFT stage needs to create artifact even when there is nothing to test.
Fix issues with correctly handling the last tested version for upgrade stage.
Fix issues with correctly handling the last tested version for staging stage.
Fix typo in artifact file name.