random DAG testing