Added methods for Tree class
Added more tests for Tree class