Added test for edge loop error.