Tests for selecting environment