test BlockwiseThresholding