Add filter_kernel option for detection
New test for filter_kernel
Add new tests for detect_threshold
More tests for detection