noise testing code