Fixing `set_edge_value()` such that `null` is substituted for `v` if `v` is `undefined`, updating tests