refined tests for calculatePeak