Fix the unit test to also check the environment setters for null