fixed a bug in the testscript