Update testscript for enhanced automation