Tests: add Environment tests.