Added a test for creating subgraphs as factory components at run-time.