Added test for auxiliary depth-first traversal function with generator.
Updated test and implemented traversal.