Adding test for copying a tree. - Checks for nullability