added test env check