fixed graph random gen in test