Fix test scripts [skip ci]