Generalized some constructs in test-scene-graph.
Moved scene graph test context to dedicated module.