added environment version tester,
fails if version was changed