fixed testscript and a testcase