fix test environment error