finished tests for weighted edges