added unit tests for pre_order_nodes() and pre_order_list()

This fixes #44