Fix test scripts.