Add a testing command box to execute tests after deployment but before replacing the existing app version. Only if all tests returns OK, then you can continue the deployment with the new app version.