add min_runtime parameter to detect_lostruns and fix unit tests