Use a specific envvar instead of TESTING

We should use fine-grained environment variables instead of general oneslike "TESTING."