Updated try and catch loop for test scripts created by Isha.