auto test for cycle and user defined xy

auto test for cycle and user defined xy