Add unittest for bad disrodered case of mtaching.