add tests for configure environment function