please add unit tests to confirm the graph is a barabasi albert graph.