Add test for MultiGraph input.