[Thresholding] made unit test work