Add peak_detector tests