merged graph iterator tests into one