Use a specific envvar instead of TESTING

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