Rewrote tests to be agnostic to positions of nodes in output.