add test case for is.cyclic