method loadRandomGraph adjusted
new test added