Fix test scripts [no-ci]