binarize integrated with test_counts