Use a patched os.environ in tests

Don't use global state (os.environ) as this messes with tests.
Instead use the BaseEnvVar class that patches out os.environ for you.
This was causing a test fail because a test was depending on os.environ
being patched to have the access/secret key env vars available.