got compressDataAroundPeak working with tests