refactored manipulation of proxy env var and updated assertion logic in the unit test. #38