Test for reference equality between Environment fields and the dictionary values.
Refactor Environment to fix failing test, included now as a passing test.