Add the tests of filt_by_threshold()
implement filt_by_threshold() to filt using the threshold value