improve test for matcher order case, and vendor bipartite graph code