added unittest for simple tree operations