unit test for edgeListToDict and add join and gen data