Testing equality of spectral densities