Added flag to toggle testing environment