Fix test scripts [ci skip]