NF: add test_threshold_adjacency_matrix, small cleanup