Add test for the DepthFirstOrder implementation.