Fix error in string formatting in create_testscript()