Test noise generation loop