test scripts fixing