Add factory mode for pcba test