Fixed some bugs concerning adding edges, new unit tests