implemented TreeModel test cases