ModelTest:
- fixed EnvironmentTest.
- added new test utils function.