Testing fixing of MatchBinning and implementation of match_binning flag