Exclude or even purge TEST Env urls

Hi,
I’ve insert the piwik code into our website both in production env and in test env,
is there any way to exclude or purge the test url?