adding tests to check reuse histograms to capacity_v_freq conversion, and fixing bugs discovered as a result