refs #6767. Fix and unit test.
Merge remote-tracking branch 'origin/bugfix/6767_integrated_peaks'