fixing tests for barabasi_albert