test for dev/test env instead of production

test for "production" is dangerous since there might also be "staging" etc.

We have several production stages (QA, UA etc.) with names different from "production".
The previous test won't respect the fact that those are production-like environments.