test wait for graph refactor