fix test scripts