add testing stage check