fix test environment setting