completed identical tree problem and test cases