testing donuts with shared edges