They don’t belong there.
Test scripts are very important, and should be in version control and treated as software. But they should not be installed on production systems. Make sure your scripts that deploy code to production systems does not deploy the test scripts.
You may think there’s no harm in having scripts that sit there doing nothing, but the problem is that sooner or later, one of those scripts will get executed by accident. And what do test scripts do? They truncate data, drop databases, fill tables with fake elements. Any of which could cause major issues with the production systems, possibly leading to loss of customer data and system outages.
Be smart. Keep that stuff out.