Use env accessor

The tests are a bit more convoluted, and the companion class (which might be pulled up into spring-cloud-test at some point) is a whole bunch of delegator boilerplate, but the tests now operate without using `System`.