Avoid 32-bit possible integer overflow in test.jl.

fixes JuliaDSP/DSP.jl/issues/18 
unfortunately does not fix #5472