Modifed due to change in output of FindPeaks. Refs #7789.
Changed unit test for better performance. Refs #7789.