I'm saying its strange to move a run time  decision (ie, am I running tests?) to compile time.  IE, set the env var at run time and swap out the cert then?  Or do you think thats too dangerous?