added testing flag to helper