fix operation order error in _spectral_helper and implement more tests to catch these sorts of problems in the future
Merge pull request #2571 from toddrjen/specfix

This fixes thee probllem brought up in the mailing list with the recent spectrum improvements