added edge derivation test.