Add tests for pre_and_postorder with no children