added cyclic traversal test case to MatchTest.