Add getProcessEnv_ function for unit tests.