Wrote a testEdges method