fix script path error in tests