added Edge tests and duplicate node detection