added test for cycles with mapping relations