Fix bugs of match specs in mdigraph.
* add modified version of digraph test suits for mdigraph.