added test for env detector