[Green] Added more tests on fromTree and toTree