Added unit tests to cover the doorstop.core.tree.