Improve Environment_spec test suite.

- make sure global test environment is not touched
- updated documentation
- ensure proper inheritance (forgot a .prototype)