add condition before Reboot to check for iTestMode