fix test to handle that layoutGraph is now async