Building up a large set of unit tests, already uncovered some bugs in the deleteEdge functions