one more test + fix for duplicate edges