added test and funcionality of moving tree