Added jUnit test cases for Tree