Fix invalid number of edges in testcase 4