Generalized the toggling of the CRDS environment for testing.