Add test fragment for cycle detection and creation.