Adding coverage for EnvironmentContext.
Making all the example unit tests actually work and what not.