Fixed get-all-edges to actually work. Added in tests.