Spectral Average Test Code