Add test for cycles.