add centrality tests and fix bug in betweenness centrality