add cycle extraction test