thresholding and faulty tests